home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
06
/
alib
/
fatal.asm
< prev
next >
Wrap
Assembly Source File
|
1991-08-23
|
435b
|
30 lines
title fatal applications exit
include asm.inc
public fatal_app_exit
.const
ertx_fatal db 'fatal',0
.code
extn set_strerror,perror,exit_with_failure
;; fatal app exit
;
; entry AX offset of DGROUP error string
; note this function never returns
;
fatal_app_exit proc
call set_strerror
mov ax,@data
mov ds,ax
lea si,ertx_fatal
call perror
jmp exit_with_failure
fatal_app_exit endp
end